package kids;

import emergent.Rule;

public class Increase implements Rule<GameWorld, Kid> {

	@Override
	public void doAction(GameWorld world, Kid agent) {
		agent.setValue(agent.getValue() + 1);
	}

	@Override
	public boolean verifyGuard(GameWorld world, Kid agent) {
		return (agent.isIncreasing() && agent.getValue()<10);
	}

}
